/**
 * Created by wry on 2014/12/29.
 */
module.exports = function (app) {
    var admin = require('../../controllers/backoffice/backOffice-rest-controller');
    logger.debug("load the backoffice admin-route module....");

    //rest路由
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/admin/createRESTService', admin.createRESTService);
    app.put('/rest/' + RESTFullServiceVersion + '/backoffice/admin/updateRESTService/:RESTServiceObjId', admin.updateRESTService);
    app.get('/rest/' + RESTFullServiceVersion + '/backoffice/admin/getRESTServiceList/:startPage/:pageSize', admin.getRESTServiceList);
    app.get('/rest/' + RESTFullServiceVersion + '/backoffice/admin/getRESTServiceById/:RESTServiceObjId', admin.getRESTServiceById);
    app.delete('/rest/' + RESTFullServiceVersion + '/backoffice/admin/deleteRESTService/:RESTServiceObjId', admin.deleteRESTServiceById);

};